package com.example.demo.thread.volatiles;

/**
 * @author luowj12
 * @since 2021/6/24 9:13
 */
public class volatileMain {

    public static void main(String[] args) {
        try {
            RunThread thread = new RunThread();
            thread.start();
            Thread.sleep(5000);
            thread.setRunning(false);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
